package org.example.lotterysystem.service.dto;

import org.example.lotterysystem.dao.dataobject.Encrypt;
import org.example.lotterysystem.service.enums.UserIdentityEnum;

public class UserDTO {


    /**
     * 用户id
     */
    private Long userId;
    /**
     * 用户名
     */
    private String userName;
    /**
     * 邮箱
     */
    private String email;
    /**
     * 手机号
     */
    private String phoneNumber;
    /**
     * 身份信息
     */
    private UserIdentityEnum identity;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public UserIdentityEnum getIdentity() {
        return identity;
    }

    public void setIdentity(UserIdentityEnum identity) {
        this.identity = identity;
    }
    @Override
    public String toString() {
        return "UserDTO{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", email='" + email + '\'' +
                ", phoneNumber='" + phoneNumber + '\'' +
                ", identity=" + identity +
                '}';
    }
}
